package com.ruoyi.school.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.school.domain.PacActivationStatus;
import com.ruoyi.school.service.PacActivationStatusService;
import com.ruoyi.school.mapper.PacActivationStatusMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author jeremylin
* @description 针对表【pac_activation_status(实战单位开通情况表)】的数据库操作Service实现
* @createDate 2025-08-04 06:12:11
*/
@Service
public class PacActivationStatusServiceImpl extends ServiceImpl<PacActivationStatusMapper, PacActivationStatus>
    implements PacActivationStatusService{

    /**
     * 获取列表
     *
     * @param pacActivationStatus
     * @return
     */
    @Override
    public List<PacActivationStatus> getList(PacActivationStatus pacActivationStatus) {
        List<PacActivationStatus> list = lambdaQuery()
                .list();
        return list;
    }

    /**
     * 根据城市找到城市开通情况
     *
     * @param city
     * @return
     */
    @Override
    public PacActivationStatus selectByCity(String city) {
        return lambdaQuery().eq(PacActivationStatus::getCityName, city).one();
    }
}




